package com.mbc.web.common.server.util;

public class FontConverter {

    private int  keycode;

        public String ZawgyiOneToWinInnwa(String source)
        {
        	StringBuilder l_StringBuilder = new StringBuilder();
            for(int i = 0; i < source.length(); i++)
            {
                keycode = source.charAt(i); // document.getElementById("txtInput").value.charCodeAt(i);
                switch(keycode) 
                {
				    case 4096 : keycode = 117; break;
				    case 4097 : keycode = 99 ; break;
				    case 4098 : keycode = 42; break;
				    case 4099 : keycode = 67; break;
				    case 4100 : keycode = 105; break;
				    case 4101 : keycode = 112; break;
				    case 4102 : keycode = 113 ; break;
				    case 4103 : keycode = 90 ; break;
				    case 4104 : keycode = 245 ; break;
				    case 4105 : keycode = 218; break;
				    case 4106 : keycode = 110; break;
				    case 4107 : keycode = 35; break;
				    case 4108 : keycode = 88; break;
				    case 4109 : keycode = 33; break;
				    case 4110 : keycode = 161; break;
				    case 4111 : keycode = 80; break;
				    case 4112 : keycode = 119; break;
				    case 4113 : keycode = 120; break;
				    case 4114 : keycode = 39; break;
				    case 4115 : keycode = 34; break;
				    case 4116 : keycode = 101; break;
				    case 4117 : keycode = 121; break;
				    case 4118 : keycode = 122; break;
				    case 4119 : keycode = 65; break;
				    case 4120 : keycode = 98; break;
				    case 4121 : keycode = 114; break;
				    case 4122 : keycode = 44; break;
				    case 4123 : keycode = 38; break;
				    case 4124 : keycode = 118; break;
				    case 4125 : keycode = 234; break;
				    case 4126 : keycode = 111; break;
				    case 4127 : keycode = 91; break;
				    case 4128 : keycode = 86; break;
				    case 4129 : keycode = 116; break;
				    case 4131 : keycode = 163; break;
				    case 4132 : keycode = 254; break;
				    case 4133 : keycode = 79; break;
				    case 4134 : keycode = 232; break;
				    case 4137 : keycode = 235; break;
				    case 4138 : keycode = 236; break;
				    case 4139 : keycode = 103; break;
				    case 4140 : keycode = 109; break;
				    case 4141 : keycode = 100; break;
				    case 4142 : keycode = 68; break;
				    case 4143 : keycode = 107; break;
				    case 4144 : keycode = 108; break;
				    case 4145 : keycode = 97; break;
				    case 4146 : keycode = 74; break;
				    case 4147 : keycode = 75; break;
				    case 4148 : keycode = 76; break;
				    case 4150 : keycode = 72; break;
				    case 4151 : keycode = 104; break;
				    case 4152 : keycode = 59; break;
				    case 4153 : keycode = 102; break;
				    case 4154 : keycode = 115; break;
				    case 4155 : keycode = 106; break;
				    case 4156 : keycode = 71; break;
				    case 4157 : keycode = 83; break;
				    case 4160 : keycode = 48; break;
				    case 4161 : keycode = 49; break;
				    case 4162 : keycode = 50; break;
				    case 4163 : keycode = 51; break;
				    case 4164 : keycode = 52; break;
				    case 4165 : keycode = 53; break;
				    case 4166 : keycode = 54; break;
				    case 4167 : keycode = 55; break;
				    case 4168 : keycode = 56; break;
				    case 4169 : keycode = 57; break;
				    case 4170 : keycode = 63; break;
				    case 4171 : keycode = 47; break;
				    case 4172 : keycode = 252; break;
				    case 4173 : keycode = 237; break;
				    case 4174 : keycode = 164; break;
				    case 4175 : keycode = 92; break;
				    case 4186 : keycode = 58; break;
				    case 4192 : keycode = 250; break;
				    case 4193 : keycode = 169; break;
				    case 4194 : keycode = 190; break;
				    case 4195 : keycode = 162; break;
				    case 4196 : keycode = 70; break;
				    case 4197 : keycode = 246; break;
				    case 4198 : keycode = 228; break;
				    case 4199 : keycode = 249; break;
				    case 4200 : keycode = 198; break;
				    case 4201 : keycode = 209; break;
				    case 4202 : keycode = 251; break;
				    case 4203 : keycode = 241; break;
				    case 4204 : keycode = 179; break;
				    case 4205 : keycode = 178; break;
				    case 4206 : keycode = 215; break;
				    case 4207 : keycode = 185; break;
				    case 4208 : keycode = 214; break;
				    case 4209 : keycode = 229; break;
				    case 4210 : keycode = 197; break;
				    case 4211 : keycode = 172; break;
				    case 4212 : keycode = 166; break;
				    case 4213 : keycode = 180; break;
				    case 4214 : keycode = 168; break;
				    case 4215 : keycode = 233; break;
				    case 4216 : keycode = 220; break;
				    case 4217 : keycode = 230; break;
				    case 4218 : keycode = 193; break;
				    case 4219 : keycode = 199; break;
				    case 4220 : keycode = 174; break;
				    case 4221 : keycode = 223; break;
				    case 4222 : keycode = 77; break;
				    case 4223 : keycode = 78; break;
				    case 4224 : keycode = 66; break;
				    case 4225 : keycode = 96; break;
				    case 4226 : keycode = 126; break;
				    case 4227 : keycode = 238; break;
				    case 4228 : keycode = 239; break;
				    case 4229 : keycode = 244; break;
				    case 4230 : keycode = 243; break;
				    case 4231 : keycode = 167; break;
				    case 4232 : keycode = 73; break;
				    case 4233 : keycode = 170; break;
				    case 4234 : keycode = 84; break;
				    case 4235 : keycode = 216; break;
				    case 4236 : keycode = 208; break;
				    case 4237 : keycode = 248; break;
				    case 4238 : keycode = 240; break;
				    case 4239 : keycode = 69; break;
				    case 4240 : keycode = 189; break;
				    case 4241 : keycode = 64; break;
				    case 4242 : keycode = 124; break;
		                                case 4135 : keycode = 123; break;
				    case 4243 : keycode = 123; break;
				    case 4244 : keycode = 89; break;
				    case 4245 : keycode = 85; break;
				    case 4246 : keycode = 201; break;
				    case 4247 : keycode = 165; break;
//				    case 4154 : keycode = 81; break;
//				    case 4221 : keycode = 82; break;
//				    case 4221 : keycode = 87; break;		
                }
                l_StringBuilder.append(Character.toChars(keycode));
            }
            return l_StringBuilder.toString();
        }
}
